<!doctype>
<html>
<head>
<script>

</script>
<script src="../min/xMagic.0.1.min.js"></script>
<script src="../min/xMagic_http.0.1.min.js"></script>
<script>
// Synchronous HTTP request
var html = $.http('http.html', {async:false});

// Asynchronous HTTP request
$.http('http.html', function (html) {
    alert(html);
});

// Custom settings
var http = $.http({
    url: 'http.html',
	timeout: 3000,
    data: {
        sessionID: '3skg71sj2g0g9ds9lsd0'
    },
	callback: function () {
		alert(xhr);
	}
});

// A HTTP request using GET method
http.get();

// A HTTP request using POST method
http.post('http.html', {param:'value'}, function (html) {
    alert(html);
});
</script>

</head>

<body>

</body>

</html>